import request from '@/utils/request'
// import { getToken } from '@/utils/storage'
// export 按需导出
// export const getArticles = params => request.get('/interview/query', {
//   params,
//   headers: {
//     Authorization: `Beaer ${getToken()}`
//   }
// })

export const getArticles = params => request.get('/interview/query', params)

export const getArticleDetail = id => request.get('/interview/show', { params: { id } })

export const updateLike = id => request.post('/interview/opt', { id, optType: 1 })

export const updateCollect = id => request.post('/interview/opt', { id, optType: 2 })

export const getArticlesCollectOrLike = params => request.get('/interview/opt/list', { params })
